

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "WillReleasedModel.h"
@interface PlayerDataBase : NSObject
@property (nonatomic, strong) FMDatabase *dataBase;
//创建单例类
+ (PlayerDataBase *)shareDataBase;
//指定数据库路径
- (NSString *)sqlitePaths:(NSString *)sqlitePaths;
//打开数据库
- (void)openSqliteWithPaths:(NSString *)paths;
//关闭数据库
- (void)closeSqlite;
//建表
- (void)createPlaySongListWithTable:(NSString *)name;
//往表中插入数据(建表,插入,更新封装操作)
- (BOOL)insertIntoTable:(NSString *)tableName  Model:(WillReleasedModel *)model;

//获取所有数据
- (NSMutableArray *)selectFromTable:(NSString *)tableName;

//删除一首歌
- (void)deleteModelFromTable:(NSString *)tableName WithSongID:(NSString *)songID;


@end
